package com.monkey.server.db.core.store;

import com.monkey.server.db.core.executor.Executor;

public class StoreFactory {
    private static final StoreFactory sf = new StoreFactory();
    
    public static StoreFactory getInstance() {
        return sf;
    }
    
    public  HashStore createStore(Executor executor, String tableName, int persistFirstTimeAfter, int persistFrequency) {
        HashStore store = new HashStore(executor, tableName, persistFirstTimeAfter, persistFrequency);
        return store;
    }
}
